package com.googlecode.garbagecan.test.rhino;

import org.mozilla.javascript.ScriptableObject;

public class Counter extends ScriptableObject {

	private int count = 0;

	public Counter() {

	}

	public Counter(int count) {
		this.count = count;
	}

	@Override
	public String getClassName() {
		return "Counter";
	}

	public void jsFunction_reset() {
		this.count = 0;
	}

	public int jsGet_count() {
		return this.count++;
	}
}
